projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cf0eb5
)
driver: mmc: set sdhc clock in fsl_esdhc for CONFIG_PPC
author
Yinbo Zhu
<
[email protected]
>
Thu, 11 Apr 2019 11:01:46 +0000
(11:01 +0000)
committer
Prabhakar Kushwaha
<
[email protected]
>
Thu, 23 May 2019 08:52:33 +0000
(14:22 +0530)
Signed-off-by: Yinbo Zhu <
[email protected]
>
Reviewed-by: Prabhakar Kushwaha <
[email protected]
>
drivers/mmc/fsl_esdhc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/fsl_esdhc.c
b/drivers/mmc/fsl_esdhc.c
index 377b2673a3233505b43e2aa241711713eb200118..ab530551fab751ec1b19699f597ca5608096c487 100644
(file)
--- a/
drivers/mmc/fsl_esdhc.c
+++ b/
drivers/mmc/fsl_esdhc.c
@@
-1435,7
+1435,9
@@
void fdt_fixup_esdhc(void *blob, bd_t *bd)
#endif
#if CONFIG_IS_ENABLED(DM_MMC)
+#ifndef CONFIG_PPC
#include <asm/arch/clock.h>
+#endif
__weak void init_clk_usdhc(u32 index)
{
}
@@
-1568,7
+1570,11
@@
static int fsl_esdhc_probe(struct udevice *dev)
priv->sdhc_clk = clk_get_rate(&priv->per_clk);
} else {
+#ifndef CONFIG_PPC
priv->sdhc_clk = mxc_get_clock(MXC_ESDHC_CLK + dev->seq);
+#else
+ priv->sdhc_clk = gd->arch.sdhc_clk;
+#endif
if (priv->sdhc_clk <= 0) {
dev_err(dev, "Unable to get clk for %s\n", dev->name);
return -EINVAL;